<?php
    // include /conf/glob_conf.php 
    for($i=2;$i < substr_count ($_SERVER['PHP_SELF'],"/");$i++)
      $relative_path .= "../";  
    require_once $relative_path . 'conf/glob_conf.php';
    require_once 'LiveUser/Admin.php';

    class nh_AdminMember{
        //Session about manipulate Container Data;
        var $admin;
        
        function NH_Mag_Member(){
            require_once 'memb_conf.php';
            $this->admin =& LiveUser_Admin::factory($conf);
            $this->admin->init();  
        }
        
        function init(){
            //sigleton pattern
            static $temp_admin;
            if(isset($temp_admin)){
                return $temp_admint;
            } else {
                $temp_admin = & new NH_Mag_Member();
                return $temp_admin;
            }
        }
        function addMember() {
            $memberInfo = array(
            'handle' => 'johndoe' . rand(),
            'passwd' => 'master',
            'name'  => 'asdf',
            'email' => 'fleh@example.com',
            'regDate'=> '2007-7-23 0:0:0',
        );
            $this->admin->addUser($memberInfo);
        }
        function removeMember($mid) {
        
            return;
        }
        function modifyMember($mid) {
        
            return;
        }
    }
?>
